import axios from 'axios';
// import store from '@/store';
import  mUtil from '@/utils/mtUtil';
export class addrEditService{
  /*TODO 查询字典(VUEX缓存读取)*/
  static queryDictByVuex(dictItem){
    return new Promise((resolve)=>{
      // resolve(store.state.dict[dictItem]);
      // resolve(getDict(dictItem))
      resolve(mUtil.getDict(dictItem));
      //console.log(dictItem)
      //console.log(getDict);
      // resolve(111);
      // resolve(store.state.dict[dictItem].children);
    });
  }
  /*TODO 查询字典服务接口*/
  static queryDict(){
    return axios({
      url: '/sys/dictmanagement',
      method: 'GET',
    });
  }
  /*TODO 存储数据到地址表中*/
  //存储数据库服务
  // static saveAddr(){
  //   return axios({
  //     url: '/sys/dictmanagement',
  //     method: 'GET',
  //   });
  // }

}

